Added more edge cases
Made the SignatureBaseString object encode the base string elements