Replaced encode and transform functions with convert and 'converions' namepsace