Added conversion for permissions. Now properly uses binary strings.