Added test for ArgumentException when reference contains invalid filename chars.