Support browser. encode is NOT ready yet.