Fix Unicode handling

Use `encodeURIcomponent()` on cache data before base64 encoding, as
base64 can't handle Unicode characters. Should mean display of waypoints
and corrected coordinates is fixed for caches with extended characters
in their names.