Default charset set to UTF-8 and charset is not always the second param of header

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