fixed handling of multiple quotes with serialize, thx @serabe