initial implementation of https://github.com/globaleaks/Tor2web-3.0/issues/15