Fixed issued related to encoding a password ending with '!'