The following:
$escapetool.velocity('one##two')
outputs:
one${esc.h}${esc.h}two
which is not right because $esc is not defined. It should have been $escapetool.