encode single quote character when generating requestId