Make sure we handle newlines properly cross platform