fixed punctuation script to work with unicode