L2P: fix matching multiple characters

The current character should only be updated if a rule is fully
matched.