Customize request encoding