So Pedro was on the right track, this was a java string after all (at least with JDK7). I'm integrating the PR.