Added functionality for custom encoding

Added functionality for custom encoding (default utf-8). There are problems when the table has some non-standard characters. New option `encoding` gives you a possibilty to change it accordingly to your data.