import codecs


def _reg_file_to_str(file_path):
    """Open file at given path and return as a string."""
    with codecs.open(file_path, 'r', 'utf-16-le') as f:
        file_str = f.read()
        return file_str