adjusted the way the graphite URL is encoded to prevent parsing errors