fixed toggling state action with accel
fixed utf-8 encoding