Implement proper unicode regex handling

- Use XRegExp to match Unicode letters
- Reformat code to fit JSLint rules
- Add Unicode tests