Try to use parameters instead, named parameters in cypher are {name} and you pass a hash/dictionary with the name-value pairs along with the query.
start me = node:actors(actor = {me}) ,
you = node:actors(actor = {you})
match p = you-[*1..3]-me
return p
params: {"me":"Tom Baker","you":"Peter Davison"}