Changing the charLimit in JS had no impact, so this patch aims to fix that and add an integration test for it.