Use oslo.utils.encodeutils instead of strutils

Change-Id: Id8adb40a88d1bbaacbb75e2eeafd723d92d7de29