still doesn't work with extended chars, replace