correctly decode UTF characters