fixes #4483 extension properties or html5 in the filename are not served

Fixed the issue and committed code for review, please check it.