As far as I know base64 is not guaranteed to be uri safe, though most of the time you should be fine. However more importantly converting to base64 automatically increases the size by 33%
https://developer.mozilla.org/en-US/docs/Web/API/WindowBase6...