File permissions and newlines