[engine] avoid useless string calculation in ASTStringLiteral - fixes VELOCITY-833 (thanks to Jarkko Viinamäki)