fixed test which wasn't providing a specific encoding on a bytearray