fixed greek letter replacement to work with codepoints
code-cleanup to make Greek letter substitutions easier to follow