security: In MemoryPrivateKeyStore.sign, simplify converting a string to bytearray.