Added explicit file encoding (utf-8) to avoid 'invalid multibyte char' on ruby 1.9
Removed references to the old 'require_relative' way for ruby versions < 1.9