Different behavior on JRuby. Returning an empty string when the file is empty instead of nil