added encoding and checksum methods to Responsebuilder class