JRUBY-5742: Fails to use UTF-8 encoded source with BOM.