Fix for username/password with invalid xml chars

I have a crazy password with non xml chars; They have to be escaped.