- Refactorred for utf-8 mac.