Use `replaceExtensions` option properly.
Merge pull request #10 from rjackson/use-replace-extensions

Use `replaceExtensions` option properly.