Directly use util.fromJavaString because it returns null if its argument is null