use java.net.URLEncoder to encode streamId
add SprayJsonSerializer and appropriate tests