API: If key begins with '@' treat it as an xml attribute
Remove some whitespace
Simpler method for getting the first char
Merge pull request #1287 from owncloud/ocs_xml_attributes

API: Treat array keys starting with '@' as XML attributes