Create builder class, allow body entity encoding type, fix no cast checking.