Add MessageEncoder for RequestMessage and tests passed.