import io


def reader(fh):
    """ Handle BOM (byte order mark) in Excel output """

    BOM = "\ufeff"
    text = fh.read()
    if text.startswith(BOM):
        text = text[1:]

    return io.StringIO(text)