Amazing how a second hand hearsay account, written decades after the apparent death of Jesus, has a direct quote that is trustworthy.
Faulty reasoning. Even if the words are direct quotes if your mind rejects it you will probably then argue that words spoken in a different time, in a different culture, in a different society, in a different language cannot possibly be translated into our current language, society, culture and time since words change, society and cultures change, language changes, and the written word can never capture the inflection, cannot hope to convey the emotion meant through the spoken word.
There are societies, for lack of a better word, who prided themselves on transmitting the actual words and, hopefully, as well as their original inflection. It's how the scriptures were transmitted before they were written down. What then seem to have happened is that mistakes were made when they the words were being copied or being translated.
As to the quote, "you will know the truth, and the truth will set you free," we all make the mistake of thinking we know what was meant, and so take words literally. What if the words didn't mean what we think they meant? "Know," "Truth," and "free" may have much deeper meanings. Take for example the word, "know". IMO, to know something is not something that is known through the mind but rather after someone has had an experience which caused an epiphany then the mind knows that it is true, it is beyond logic, it is beyond reason. To know something someone has to experience it. Those who have experienced the Kingdom of God "know" exactly what those words mean, know what is Truth and what is Freedom. Reasoning backward, if knowing truth sets one free, then our not knowing truth means that we are not free.
"When you make the inner like the outer and the outer like the inner, and the upper like the lower, when you make male and female into a single one, so that the male will not be male and the female will not be female ..., then you will enter the kingdom."
-The Gospel of Thomas, saying 22
"When you see one who was not born of a woman, bow down and worship. That is your Father."
-The gospel of Thomas, saying 15
"Whoever has come to know the world has discovered a carcass, and whoever has discovered a carcass is worth more than the world."
-The Gospel of Thomas, saying 56
"Whoever has come to know the world has discovered a body, and whoever has discovered the body is worth more than the world."
-Gospel of Thomas, saying 78
"Whoever recognizes father and mother will be called the child of a whore."
-Gospel of Thomas, saying 103
Those with [an] Eastern Religion mindset (say, Vedanta or Zen, for example) should be able to discern deeper meanings than the literal words.
"If they ask you, 'What is the evidence of your Father in you?' tell them, 'It is motion and rest.'"
-The Gospel of Thomas, saying 50
Before trying to understand Zen sayings Plotinus' The Enneads is a nice mind twister. Study Zen sayings deeply enough and you will probably stop taking words literally.