#42, add replaceExtensions