Modify the output method for Mac to bypass the keyboard layout. This makes the output independent of the layout and also allows arbitrary unicode characters. Although, it still seems limited to characters in the BMP but that seems at least half the OS's fault.