fixed double-encoding error found in draw_text