src/Brick/User/UserManager.php
public static function clearUsername($s)
	{
		$s = Strings::toAscii($s);
		$s = strtolower($s);
		$s = preg_replace('#[^a-z0-9]+#i', '.', $s);
		$s = trim($s, '.');
		return $s;
	}
public static function clearUsername($s)
	{
		$s = Strings::toAscii($s);
		$s = strtolower($s);
		$s = preg_replace('#[^a-z0-9]+#i', '.', $s);
		$s = trim($s, '.');
		return $s;
	}
******************* update* methods ********************