Replaced the 'unicode' gem with 'unf' so it'll work with JRuby.

Fixes #2279: Remove dependency on "unicode" gem.