modules/rubyencoder: fix a bug with the loader