Bug 1100219 - Avoid lots of unnecessary string copying in ProtocolParser. r=neil.

--HG--
extra : rebase_source : 7d063de7b5ec312724039c2bf6546758ebc0e2fe