CLN: compat.to_str -> core.dtypes.common.ensure_str
``compat.to_str`` is useful to have in cases where an object might be a ``bytes`` object, so it's moved to ``core.dtypes.common`` and renamed to ``ensure_str``.
