Thanks for your bug report. Can you provide examples that I can use to verify that changes I make to this feature are working? For example:

Quote:
$encode(input)
-> current output
-> expected output