Strip trailing text/plain newline