fix ascii decode errors in safeFile