$ man grep says The period . matches any single character.OK but it should also mention that illegal characters for the current locale will never be matched by ".".
This has been done, by adding "It is unspecified whether it matches an encoding error" as part of a fix for Bug#30643. Thanks for reporting the problem.