update encoding to adhere to rfc3986 (from MDN)