I think the proxy url should be configured into the gaKmlProvider. See https://github.com/geoadmin/mf-geoadmin3/blob/ed9bad8242934d3bd4eca438b2cd86193ce6c060/src/index.mako.html#L444-453 for an example. And calling encodeURIComponent should be the responsibility of gaKml.