[Fixes #59390246] Encoding::UndefinedConversionError from ASCII-8BIT to UTF-8

 - Do not force encoding when File.read returns nil