added xplatform handling for newlines, via rU