Issue #2405745 by mglaman, nicola85: substr does not handle multibyte characters when preparing NVP request