I've tested it. If I use
"!P", the double quote is escaped correctly.
"!P", the double quote is escaped correctly.
¬`¦!"£$%^&*()_+{}~[]#:@;'<>?,./|\If i use just!Pi get this result.
"¬`¦!"£$%^&*()_+{}~[]#:@;'<>?,./|\"
!P, you should get no quotes around the value. And actually, it makes little sense to use any placeholder without quotes.