Fixed encoding on messages