Udp support for  2.x-maintenance

More: #9 
It throws UnsupportedEncodingException. I can throw a stricter Exception (UnsupportedEncodingException in this case).