Fixed crash on Unix due to endline characters