Fix messaging encoding.