Make http_encode() RFC3986-compliant. (Escape everything except alphanumeric characters plus [-_~.].)