Fixes invalid byte sequence when running tests on 1.9.3