fixes #154 - parser is no longer sent into an infinite loop by certain rare combinations of characters