Properly encode XML reserved entities (&,<,>)