mot-encoder: Add option to signal charset