Finally figured out how to remove ^M characters