Strip UTF-8 byte order mark (BOM) from a string/buffer