little cleanup to read PUT body