Fix xspf reading/writing