Clean up encoder

I didn't expect https://github.com/grncdr/uri-template/pull/6 to be merged so quickly