[flow] fixed interpolated string parsing to honor escape sequences (\r \n \t).
[plugins] director: duplicate code cleanup