Fix for GH 6885 - get_dummies chokes on unicode values

Please be gentle - this is the first time I've tried to contribute either to someone else's python project or another project on github, so if my python or git foo is lacking, I apologise in advance!

As per the title, relates to #6885