Use byte coercion in unit tests for python3 support