Fix '~' on non-US keyboards.
Merge pull request #1696 from quicksilver/t/fix-accented-chars

Fix '~' on non-US keyboards.