Various unicode fixes

Most are pretty straight forward. The only big difference is that the common prefix and suffix methods will be slower than before. Maybe there's a better way to do this.

Feel free to comment!