fix #58 allow configuration of input file encoding