Add implementation for char_quote function