Specify strings as bytes for str.replace.

Otherwise, Python 3 will error with the following message.

TypeError: expected bytes, bytearray or buffer compatible object
Merge pull request #51 from jschaf/py3-bytes-bug

Specify strings as bytes for str.replace.