commands: add escaping for double quote

I need to escape also double quote.
Created helper functions to do the escaping