Encode username for authentication

Add html encoding to fix login error for usernames with special characters, this also needs this change to the server to correctly decode the username again: https://github.com/MediaBrowser/MediaBrowser/pull/957