[PDI-10242] CSV Input Step - Unable to pass file encoding as parameter

What was done
1. added unit and integration tests verifying the fix and old behavior
2. refactored existing unit tests to minimize copypasting
3. Added encoding lookup in variables