only do carriage return fixing if defined