Avoid unicode decore errors from special characters in attributes