Updating code to check for .safe extension and if it finds it it wont try and re-encrypt the file.