fix broken character code