decode base64 and url-encoded URLs