utf-8 encoding password and plaintext (fixes #7)