fixed #438 failed to retrieve settings on port 80

This was experienced when proxying to couchdb because http proxying will
decode the URL includign docid of the show parameter, so the show
returns 404.  Solution is to always double URL encode if the show docid
contains special characters.