fixed a bug with enconding - thanks to barry