Converted perl ENC to ruby ENC
Use do instead of bracket for blocks
Removed Perl version of ENC