Escaped all instances of get_library_uri()

Just to be on the safe side, lets make sure this is escaped before we
use it.