RepositoryService, RestRequest: coerce count values to integers, adjust header parsing to account for carriage return characters