Implicit conversion to bytes for Python3.

This should fix the issue with string types under Python3. All tests are passing under Python3.4.