Added jruby to the travis build matrix

* Also had to refactor a test to account for multi-byte characters in
  Java