Using gs.core instead of encode for a better converstion to ascii