Destination file needs to be a valid hostname and underscores are not valid hostname characters. Closes #13542 (cherry picked from commit b12a67ae)