(#221) - Decode dbname when coming from url

Fixes #221
Merge pull request #222 from jo/221-decode-dbname-from-url-parts

(#221) - Decode dbname when coming from url