added handling of invalide UTF-8 byte sequence exceptions
Update to use 1.8 style hash
fix problem in force_encoding in tests

force_encoding doesn't exist in ruby 1.8. Pass string as is in 1.8 and only force_encoding if string responds to it
catch Encoding::UndefinedConversionError for compatibility with JRuby 1.9 mode
jruby 1.9 mode still complaining about string encoding, try forcing it immediately
fixed issue with jruby in 1.9 mode not handling string encoding from binary properly. Now falling back to using ASCII as source
Merge pull request #46 from zawaideh/master

Fix 'invalid byte sequence in UTF-8' error in parse_link_attrs