Fix weird bug where finishing a triplequote string would insert a seemingly random character.