prevent use-after-free in LinkHandler::LaunchFile (fixes issue 2644)
make str::Utf8ToWcharBuf fail less