Update element.rb

I have changed the method text() to get the result as UTF-8. May we should refactor it with a optional parameter to enable users to specific the encoding and just use UTF-8 as default.