Use encode! instead of encode