diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 623a658..08cec22 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -1228,7 +1228,7 @@ function _locale_rebuild_js($langcode = NULL) {
     file_prepare_directory($dir, FILE_CREATE_DIRECTORY);
 
     // Save the file.
-    if (file_unmanaged_save_data($data, $dest)) {
+    if (file_unmanaged_save_data($data, $dest, FILE_EXISTS_RENAME)) {
       $locale_javascripts[$language->getId()] = $data_hash;
       // If we deleted a previous version of the file and we replace it with a
       // new one we have an update.
