Added unicode handling for gradient by character. Also fixed a bug in image2ass.

It was an infinite loop bug for a feature no one uses anyway.