clean instance names un background only allows alphanumeric chars and _ (underscore) and try to convert latin-1 encoded param keys