add support for different password encodings