Fixed the tests to make them pass with the new bytes-to-string behaviour.