Make StripTrailingNewline return an int rather than use CfOut on error