Fixed a rare bug when NSString instances would be bound to statements as NULLs due to -UTF8String returning a null pointer. Replaced -UTF8String with -getBytes:maxLength:usedLength:encoding:options:range:remainingRange which appears to be more robust