only set content-encoding if bytes > 1