0.3.0.7 Encoding updated based on buriy's update
0.3.0.6 Added option for User-Agent inclusion