@@ -165,11 +165,13 @@ { self = [super init]; itemSize = 1; - if (!of_base64_decode(self, [string cString], [string cStringLength])) { + if (!of_base64_decode(self, + [string cStringWithEncoding: OF_STRING_ENCODING_ASCII], + [string cStringLengthWithEncoding: OF_STRING_ENCODING_ASCII])) { Class c = isa; [self release]; @throw [OFInvalidEncodingException newWithClass: c]; } @@ -191,12 +193,14 @@ @throw [OFInvalidArgumentException newWithClass: isa selector: _cmd]; stringValue = [element stringValue]; - if (!of_base64_decode(self, [stringValue cString], - [stringValue cStringLength])) + if (!of_base64_decode(self, + [stringValue cStringWithEncoding: OF_STRING_ENCODING_ASCII], + [stringValue cStringLengthWithEncoding: + OF_STRING_ENCODING_ASCII])) @throw [OFInvalidEncodingException newWithClass: isa]; [pool release]; } @catch (id e) { [self release];