Fix for GH 6885 - get_dummies chokes on unicode values
closes #6885

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!
