Check whether the stream's encoding can be set.