fixed urlencoding on serializeattributes