support change file extension.

Support extension option #2