Fix for GH 6885 - get_dummies chokes on unicode values