fix bugs in flowspec encoding and flowpec redirect decoding