Speedup decode by using hash lookup instead of regexp/if
read with buffer
Merge pull request #1 from ershov/master

Speedup decode by using hash lookup instead of regexp/if