add polyfills for surrogate pairs