I think is a method that does this already, originally for the series title, but would also work here.

Also what happens if there special characters?