Added ability to deal with accented characters.