Bug 1019169: Fixed UTF <-> Uint8Array conversions