Stop relying on base String functions for byte[] conversions. This should fix the problem with the server not being able to log in