change hardcoded encoding to parameterin plugin