change funcs to UTF-8 no BOM
add "\r"