Only force_encoding if docstring