improve the code that removes \r characters
resolve #17