fix debug message

convert enum ctype to number for proper debug printout

Needed to fix https://github.com/koreader/koreader/issues/1098#issuecomment-61997348