Fixed crash for parameters with invalid encoding