Fix Attributes issue with Cyrillic characters

I created an issue with more details description - https://github.com/woothemes/woocommerce/issues/6759