@ValidateInternetAddress not working in R6

I use a simple formula to check if an email address is valid: valEmail := @ValidateInternetAddress([Address821]; fieldname). In R5, this formula works correctly and reports any illegal characters entered in the address (including spaces). However, now that I’m using this same formula in R6, it is not working correctly (does not detect spaces or other illegal characters). Has something changed in R6, or does something else need to be done for this to work in R6? Thanks!