use regexp to match the BOM character (used to fix text justification) in JRuby