Does not support unicode. This would be a use for `isinstance(prefix, six.string_types)`.