Added function for uri encode of base64 strings.