add str_replace to replace '\r\n' with just '\n'

Possible fix for xampp