BZ1067369 - Copy, Rename: File name validation broken
(cherry picked from commit 08933e437a69e4de8dd9f0214e23c41dec89d876)