request encoder