Serial number parsing confusion

the first is the result of wrong/odd quoting in the prepare-device hook, see the discussion here

we didn’t set any strong requirements on the serial so far (it needs to be unique only within a given brand/model pair and it cannot contain slashes /)