Added XML serializer from andorid sources
Moved class to avoid ambiguity, compilable under api 4+
Failing test for #2635
Fixes #2635, crash during gpx export

Added utf-16 codepoint surrogate handling to xml serializer