vmod_threescale: fix function to get substring between delimiters