add `no warnings 'surrogate';' to suppress warnings.