Raise an AzException when filename contains special characters.