Fixes sending username/password in utf-8

The webservice requires utf-8 encoding. Just sending the stored authentication gives 401 Unauthorized when using special characters.