Fix encoding in common for UTF8