Add String#bom_encoding method to interpret BOMs