fix delay chat, fix encoding problems