Fix encoding from and to fs and message log for xmodmap call