In order to obviate any problems going through security I usually fill an empty water bottle (it must absolutely be free of any moisture) with dehydrated water which as everyone knows is not a liquid.
With dozens of flights under my belt I have never had a problem.