Fix parsing octec string and SecurityObject