Unicode-aware string reverser