remove line feeds from error - may be Clarity will display the whole error message instead of the last line