Sanitize is_installed/set_installed arguments.

Using the is_installed/set_installed helpers with arguments that contain special characters (i.e github repositories, PPAs, anything with colons or dashes) will fail, because the concatenated arguments are not filename safe.

Also I think there is no need to distinguish between one or multiple arguments in the functions, it should be ok to just always sanitize.