convert HTTP response to appropriate encoding