BZ1067369 - Copy, Rename: File name validation broken (cherry-picked from f65c85ffde046ccfc6e60926b82cf00b899e6cbc)