Fix for usernames and/or passwords that contain invalid xml characters.