changed utf8 -> utf8x , must do this properly somehow