#580 - ensure allowedExtensions check is case-insensitive
rev to RC4