Add the encoding to the SQL resolver.

The default encoding is latin1. If you enter a certain
decoding, the additional userinformation like
surname and givenname from the user database will be
decoded and displayed correctly in the web UI.

Closes #3