Make sure to remove any EOLs when writing data.