decode char clean up