now the bom is respected in AppendAllText