Improve HttpConnection::translateDocument().
Fix sorting by size in WebUI when non-default locale used.