oid: only use optimized to_string on x86 based platforms.