Fix panel encoding. Fix #4.