normalize line endings before hashing text