fix bugs in split() and unquote()