fix bug when inputting url, use charset utf8 in mysql