How do you mean? You don't know how or where? Or you don't know what the behavior should be? String#transform makes a string a readable string for output purposes and should probably return a US-ASCII or ASCII-8BIT string since it contains binary data in an escaped form.