Add extension to file