Fixed bug with using non-standard string replace with the base64 url encode and decode functions