fix HttpFileServer on Windows

Backporting from commit 7e42225e01a3c8ffac94ab8a481e67798090071c by
vedun <sdugim@yandex.ru>.