No need to encode optional parts, invalid data is revealed by PHP's validation function