add failing test
Fix regexes used in parser to accept at least RFC 2812
change serialiser to only rewrite the last parameter