They are normal symbols as 'a' or 'ю' or any other. Just (invisible) entries in a string.
\r moves cursor to the beginning of the line.
\n goes one line down.
As for your replacement, you haven't specified what language you're using, so here's the sketch:
someString.replace("\r\n", "\n").replace("\r", "\n")