do not count in class with special char when load from JAR

when load from file, it only load classname with letter and digits, but
load from jar does not do this check, class with dollar will be loaded
and lead to register error