Enclose whole value in double quote

Some parameter values escape double quote. But whole value is not
quoted. It causes platform dependent issue.

This patch quotes whole value if more than one double quote is actually
escaped.

Perhaps this is root cause for windows.