There is nice kernel helper to escape a given strings by provided rules. Let's
use it instead of custom approach.
Signed-off-by: Andy Shevchenko <[email protected]>
[[email protected]: fix length calculation]
Signed-off-by: J. Bruce Fields <[email protected]>