[PECOFF] Use replace_extension() instead of doing it myself.