use urllib but need to improve string encoding