normalise line endings properly >_>