Fix translation of control symbols.

This addresses some issues uncovered whilst trying to write a regression test for the issue mentioned in #11.