Fix IllegalArgumentException with chat packet sending