Add support for UCS-2 Python builds

Ref #1213