add irb encoding methods to TODO