fixed 2 regressions in test_str.py

"abc".decode(None) did not throw TypeError
"abc".replace(None, "ef") did throw SystemError inted of TypeError