Use correct null terminator in JRuby