modules/http_client: log backtraces, move encoding fix