dynldr: ruby2.1 fixes
tests: rb2 encoding fixes