add test case for escapePlainString