URL encoding is universally effective maybe
fix passing options to encoder