Fix writeHelloWorld not respecting dots correctly.

CC @jmcgarr (not sure if you're watching these or not and this would conflict with your other pull request)