use BOM marker to determine encoding