When you try to change a filename and you change the file extension, you get a warning by default from Mac OS X.
To disable this, execute this command in your terminal:
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
And after that you need to restart your Finder
killall Finder
Now open up a new finder window and you shouldn’t get anymore warning from now on.