Fix filtering of \r