added ByteArray-fallback if AssetManager can't parse XML or JSON (closes #568)