Improvement of charset lookup method

This commit adds possibility to get charset from mime like this: "text/html;charset=koi8-r".