rewrite Str.quote not to warn on 4.02

use Buffer.t for a buffer instead of a mutable string
Merge pull request #30 from rgrinberg/str_quote_rewrite

rewrite Str.quote not to warn on 4.02