Convert router to use \n instead of newlines for better readability.