HUE-1228 [oozie] API and ImportWorkflow should be encoding aware

General encoding cleaning.