added encode&decode WebSocket string