Fix serialization with GB18030

WindowsAzure#1066
WindowsAzure#1045