fix for UTF8 data in attributes