Made output locale work for regular builds, as well as translation builds.
Added a workaround for dealing with books whose titles contain non ASCII characters for BZ#1123683 - Builds in base locales other than english can fail.