Fixed an issue with new line characters not outputting correctly