Changed unicode_to_os() to not raise a deprecation notice with Python 2.6
Fixed access violation in ST2 with Windows crypt32 code for CA certs, refactored x509 parsing to be more complete