Converted encoder to User object