set default charset to utf-8;
update charset matching pattern