When we read IfcGloballyUniqueId from IFC file on Ubuntu, it gives UnicodeEncodeError but on MacOSx ifcopenshell successfully parse IfcGloballyUniqueID (i.e. 2oAZ$Cu_aHwBkVc2Blr0Hl).
Please refer to this. https://gist.github.com/amrit3701/ebdf91fa3db5e71e7a334ef38e4dcefa
Here I created a proof of concept that how I successfully read GlobalId on MacOS but on Ubuntu its gives UnicodeEncodeError.
Also, I tried to search it about this error, but not sure is it related to IfcOpenShell (maybe some C++ library) or Ubuntu OS?