Fixes custom operations throwing KeyErrors.
Properly throws when a segment begins with a !.
Segments are properly urldecoded.