Support another encoding of home/end on Linux

Tested on konsole on kUbuntu 14.04

Reported-by: Radu Ioan Fericean <radu@fericean.ro>
Unexport getHistoryByPrefix